package com.example.pingze.repository;

import com.example.pingze.entity.Ranking;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface RankingRepository extends JpaRepository<Ranking, String> {

    List<Ranking> findRankingsByKeywordOrderByCountDesc(String keyword);

    Ranking findRankingByAccountAndKeyword(String account, String keyword);
}
